<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>eRPC API Reference: erpc_threading.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">eRPC API Reference
   &#160;<span id="projectnumber">Rev. 1.7.4</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>API&#160;Reference</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('erpc__threading_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">erpc_threading.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="erpc__threading_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014-2016, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016-2020 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef __embedded_rpc__thread__</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define __embedded_rpc__thread__</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;erpc_config_internal.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// Exclude the rest of the file if threading is disabled.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#if ERPC_THREADS</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;pthread.h&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;FreeRTOS.h&quot;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;semphr.h&quot;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;task.h&quot;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;kernel.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(MBED)</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#if MBED_CONF_RTOS_PRESENT</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;rtos.h&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#warning mbed-rpc: Threading is enabled but Mbed RTOS is not present!</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#endif // ERPC_THREADS_IS</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">// Types</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__port__threads.html#ga2c28da51e513ff5423a1c6d6aa56fef9">   48</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group__port__threads.html#ga2c28da51e513ff5423a1c6d6aa56fef9">thread_entry_t</a>)(<span class="keywordtype">void</span> *arg);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">// Declarations</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceerpc.html">erpc</a> {</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classerpc_1_1_thread.html">   62</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpc_1_1_thread.html">Thread</a></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;{</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classerpc_1_1_thread.html#a51c5d04c6a574d77d38db8d59c77a9d9">   66</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">void</span> *<a class="code" href="classerpc_1_1_thread.html#a51c5d04c6a574d77d38db8d59c77a9d9">thread_id_t</a>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="classerpc_1_1_thread.html#a5bdd8acf426795e33c858e070ba0e8bb">Thread</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="classerpc_1_1_thread.html#a5bdd8acf426795e33c858e070ba0e8bb">Thread</a>(<a class="code" href="group__port__threads.html#ga2c28da51e513ff5423a1c6d6aa56fef9">thread_entry_t</a> entry, uint32_t priority = 0, uint32_t stackSize = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classerpc_1_1_thread.html#af1e25588ebe47a2a6d79ef8c686a992b">~Thread</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classerpc_1_1_thread.html#aa4513a84070e0246a0ed1a804cfe85b4">  100</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_thread.html#aa4513a84070e0246a0ed1a804cfe85b4">setName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) { m_name = name; }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classerpc_1_1_thread.html#a0a7bea50b487914f2f2383d731b4306e">  107</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classerpc_1_1_thread.html#a0a7bea50b487914f2f2383d731b4306e">getName</a>(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_name; }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_thread.html#accdb82347a2d77477500b5dc8a9e1902">init</a>(<a class="code" href="group__port__threads.html#ga2c28da51e513ff5423a1c6d6aa56fef9">thread_entry_t</a> entry, uint32_t priority = 0, uint32_t stackSize = 0);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_thread.html#aae9e0fa0c6b9f2a0bd9e2a6fbc43dc56">start</a>(<span class="keywordtype">void</span> *arg = 0);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_thread.html#a22708d7df4c6ddd86564abbc7f81af08">sleep</a>(uint32_t usecs);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classerpc_1_1_thread.html#a220ea24e7e421b0a84736c0818fbe59b">  137</a></span>&#160;    thread_id_t <a class="code" href="classerpc_1_1_thread.html#a220ea24e7e421b0a84736c0818fbe59b">getThreadId</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(m_thread);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(m_task);</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(m_thread);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(MBED)</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(m_thread-&gt;get_id());</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classerpc_1_1_thread.html#a0dffdcfac14c0689620172a624ad4bbb">  155</a></span>&#160;    <span class="keyword">static</span> thread_id_t <a class="code" href="classerpc_1_1_thread.html#a0dffdcfac14c0689620172a624ad4bbb">getCurrentThreadId</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    {</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(pthread_self());</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(xTaskGetCurrentTaskHandle());</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(k_current_get());</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(MBED)</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>thread_id_t<span class="keyword">&gt;</span>(rtos::ThisThread::get_id());</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    }</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordtype">void</span> setStackPointer(k_thread_stack_t *stack) { m_stack = stack; }</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keyword">static</span> <a class="code" href="classerpc_1_1_thread.html">Thread</a> *<a class="code" href="classerpc_1_1_thread.html#af2628d839ac1a6000f82cc03124df7cb">getCurrentThread</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classerpc_1_1_thread.html#a46180774600273a9a0445e28aafd4af7">operator==</a>(<a class="code" href="classerpc_1_1_thread.html">Thread</a> &amp;o);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_thread.html#a549c658e575af0342283a688e58b26eb">threadEntryPoint</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *m_name;     </div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <a class="code" href="group__port__threads.html#ga2c28da51e513ff5423a1c6d6aa56fef9">thread_entry_t</a> m_entry; </div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordtype">void</span> *m_arg;            </div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    uint32_t m_stackSize;   </div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    uint32_t m_priority;    </div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keyword">static</span> pthread_key_t s_threadObjectKey; </div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    pthread_t m_thread;                     </div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    TaskHandle_t m_task;    </div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <a class="code" href="classerpc_1_1_thread.html">Thread</a> *m_next;         </div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="keyword">static</span> <a class="code" href="classerpc_1_1_thread.html">Thread</a> *s_first; </div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <span class="keyword">struct </span>k_thread m_thread;  </div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    k_thread_stack_t *m_stack; </div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(MBED)</span></div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    rtos::Thread *m_thread; </div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <a class="code" href="classerpc_1_1_thread.html">Thread</a> *m_next;         </div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keyword">static</span> <a class="code" href="classerpc_1_1_thread.html">Thread</a> *s_first; </div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> *threadEntryPointStub(<span class="keywordtype">void</span> *arg);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> threadEntryPointStub(<span class="keywordtype">void</span> *arg);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> *threadEntryPointStub(<span class="keywordtype">void</span> *arg1, <span class="keywordtype">void</span> *arg2, <span class="keywordtype">void</span> *arg3);</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(MBED)</span></div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> threadEntryPointStub(<span class="keywordtype">void</span> *arg);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <a class="code" href="classerpc_1_1_thread.html#a5bdd8acf426795e33c858e070ba0e8bb">Thread</a>(<span class="keyword">const</span> <a class="code" href="classerpc_1_1_thread.html">Thread</a> &amp;o);</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <a class="code" href="classerpc_1_1_thread.html">Thread</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classerpc_1_1_thread.html">Thread</a> &amp;o);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;};</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="classerpc_1_1_mutex.html">  283</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpc_1_1_mutex.html">Mutex</a></div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;{</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="classerpc_1_1_mutex_1_1_guard.html">  289</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classerpc_1_1_mutex_1_1_guard.html">Guard</a></div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    {</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="classerpc_1_1_mutex_1_1_guard.html#a0e882875ad2764ef2c9402dba23b9e62">  297</a></span>&#160;        <a class="code" href="classerpc_1_1_mutex_1_1_guard.html#a0e882875ad2764ef2c9402dba23b9e62">Guard</a>(<a class="code" href="classerpc_1_1_mutex.html">Mutex</a> &amp;mutex)</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        : m_mutex(mutex)</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        {</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;            m_mutex.lock();</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        }</div><div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="classerpc_1_1_mutex_1_1_guard.html#a6f8a90c15176f6715c7056fa4dac29b9">  305</a></span>&#160;        <a class="code" href="classerpc_1_1_mutex_1_1_guard.html#a6f8a90c15176f6715c7056fa4dac29b9">~Guard</a>(<span class="keywordtype">void</span>) { m_mutex.unlock(); }</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="keyword">private</span>:</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        <a class="code" href="classerpc_1_1_mutex.html">Mutex</a> &amp;m_mutex; </div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    };</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <a class="code" href="classerpc_1_1_mutex.html">Mutex</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    ~<a class="code" href="classerpc_1_1_mutex.html">Mutex</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordtype">bool</span> tryLock(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <span class="keywordtype">bool</span> lock(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    <span class="keywordtype">bool</span> unlock(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    pthread_mutex_t *getPtr(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> &amp;m_mutex; }</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    pthread_mutex_t m_mutex; </div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    SemaphoreHandle_t m_mutex; </div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <span class="keyword">struct </span>k_mutex m_mutex; </div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(MBED)</span></div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    rtos::Mutex *m_mutex;   </div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <a class="code" href="classerpc_1_1_mutex.html">Mutex</a>(<span class="keyword">const</span> <a class="code" href="classerpc_1_1_mutex.html">Mutex</a> &amp;o);</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <a class="code" href="classerpc_1_1_mutex.html">Mutex</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classerpc_1_1_mutex.html">Mutex</a> &amp;o);</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;};</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;</div><div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="classerpc_1_1_semaphore.html">  385</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpc_1_1_semaphore.html">Semaphore</a></div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;{</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="classerpc_1_1_semaphore.html#a2f8418d5b20e94a577caa0d0e428c441">  391</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> uint32_t kWaitForever = 0xffffffff;</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <a class="code" href="classerpc_1_1_semaphore.html">Semaphore</a>(<span class="keywordtype">int</span> count = 0);</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    ~<a class="code" href="classerpc_1_1_semaphore.html">Semaphore</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    <span class="keywordtype">void</span> put(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    <span class="keywordtype">void</span> putFromISR(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;<span class="preprocessor">#endif // ERPC_HAS_FREERTOS</span></div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="keywordtype">bool</span> <span class="keyword">get</span>(uint32_t timeout = kWaitForever);</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    <span class="keywordtype">int</span> getCount(<span class="keywordtype">void</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;<span class="preprocessor">#if ERPC_THREADS_IS(PTHREADS)</span></div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    <span class="keywordtype">int</span> m_count;           </div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;    pthread_cond_t m_cond; </div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <a class="code" href="classerpc_1_1_mutex.html">Mutex</a> m_mutex;         </div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(FREERTOS)</span></div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    SemaphoreHandle_t m_sem;   </div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(ZEPHYR)</span></div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    <span class="keyword">struct </span>k_sem m_sem;     </div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;<span class="preprocessor">#elif ERPC_THREADS_IS(MBED)</span></div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    rtos::Semaphore *m_sem; </div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    <span class="keywordtype">int</span> m_count;            </div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    <a class="code" href="classerpc_1_1_semaphore.html">Semaphore</a>(<span class="keyword">const</span> <a class="code" href="classerpc_1_1_semaphore.html">Semaphore</a> &amp;o);</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <a class="code" href="classerpc_1_1_semaphore.html">Semaphore</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classerpc_1_1_semaphore.html">Semaphore</a> &amp;o);</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;};</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;} <span class="comment">// namespace erpc</span></div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;<span class="preprocessor">#endif // defined(__cplusplus)</span></div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;<span class="preprocessor">#endif // ERPC_THREADS</span></div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<span class="preprocessor">#endif // defined(__embedded_rpc__thread__)</span></div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;<span class="comment">// EOF</span></div><div class="ttc" id="classerpc_1_1_thread_html_a46180774600273a9a0445e28aafd4af7"><div class="ttname"><a href="classerpc_1_1_thread.html#a46180774600273a9a0445e28aafd4af7">erpc::Thread::operator==</a></div><div class="ttdeci">bool operator==(Thread &amp;o)</div><div class="ttdoc">Compare operator compares two threads. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:72</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_accdb82347a2d77477500b5dc8a9e1902"><div class="ttname"><a href="classerpc_1_1_thread.html#accdb82347a2d77477500b5dc8a9e1902">erpc::Thread::init</a></div><div class="ttdeci">void init(thread_entry_t entry, uint32_t priority=0, uint32_t stackSize=0)</div><div class="ttdoc">This function initializes thread. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:52</div></div>
<div class="ttc" id="group__port__threads_html_ga2c28da51e513ff5423a1c6d6aa56fef9"><div class="ttname"><a href="group__port__threads.html#ga2c28da51e513ff5423a1c6d6aa56fef9">thread_entry_t</a></div><div class="ttdeci">void(* thread_entry_t)(void *arg)</div><div class="ttdoc">Thread function type. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:48</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_a0dffdcfac14c0689620172a624ad4bbb"><div class="ttname"><a href="classerpc_1_1_thread.html#a0dffdcfac14c0689620172a624ad4bbb">erpc::Thread::getCurrentThreadId</a></div><div class="ttdeci">static thread_id_t getCurrentThreadId(void)</div><div class="ttdoc">This function returns thread id where function is called. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:155</div></div>
<div class="ttc" id="classerpc_1_1_thread_html"><div class="ttname"><a href="classerpc_1_1_thread.html">erpc::Thread</a></div><div class="ttdoc">Simple thread class. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:62</div></div>
<div class="ttc" id="classerpc_1_1_mutex_1_1_guard_html_a6f8a90c15176f6715c7056fa4dac29b9"><div class="ttname"><a href="classerpc_1_1_mutex_1_1_guard.html#a6f8a90c15176f6715c7056fa4dac29b9">erpc::Mutex::Guard::~Guard</a></div><div class="ttdeci">~Guard(void)</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:305</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_a22708d7df4c6ddd86564abbc7f81af08"><div class="ttname"><a href="classerpc_1_1_thread.html#a22708d7df4c6ddd86564abbc7f81af08">erpc::Thread::sleep</a></div><div class="ttdeci">static void sleep(uint32_t usecs)</div><div class="ttdoc">This function puts thread to sleep. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:83</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_aa4513a84070e0246a0ed1a804cfe85b4"><div class="ttname"><a href="classerpc_1_1_thread.html#aa4513a84070e0246a0ed1a804cfe85b4">erpc::Thread::setName</a></div><div class="ttdeci">void setName(const char *name)</div><div class="ttdoc">This function sets name for thread. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:100</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_a0a7bea50b487914f2f2383d731b4306e"><div class="ttname"><a href="classerpc_1_1_thread.html#a0a7bea50b487914f2f2383d731b4306e">erpc::Thread::getName</a></div><div class="ttdeci">const char * getName(void) const </div><div class="ttdoc">This function returns name of thread. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:107</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_af1e25588ebe47a2a6d79ef8c686a992b"><div class="ttname"><a href="classerpc_1_1_thread.html#af1e25588ebe47a2a6d79ef8c686a992b">erpc::Thread::~Thread</a></div><div class="ttdeci">virtual ~Thread(void)</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:50</div></div>
<div class="ttc" id="namespaceerpc_html"><div class="ttname"><a href="namespaceerpc.html">erpc</a></div><div class="ttdef"><b>Definition:</b> erpc_arbitrated_client_manager.h:25</div></div>
<div class="ttc" id="classerpc_1_1_mutex_1_1_guard_html"><div class="ttname"><a href="classerpc_1_1_mutex_1_1_guard.html">erpc::Mutex::Guard</a></div><div class="ttdef"><b>Definition:</b> erpc_threading.h:289</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_a51c5d04c6a574d77d38db8d59c77a9d9"><div class="ttname"><a href="classerpc_1_1_thread.html#a51c5d04c6a574d77d38db8d59c77a9d9">erpc::Thread::thread_id_t</a></div><div class="ttdeci">void * thread_id_t</div><div class="ttdoc">Unique identifier for a thread. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:66</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_a549c658e575af0342283a688e58b26eb"><div class="ttname"><a href="classerpc_1_1_thread.html#a549c658e575af0342283a688e58b26eb">erpc::Thread::threadEntryPoint</a></div><div class="ttdeci">virtual void threadEntryPoint(void)</div><div class="ttdoc">This function execute entry function. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:102</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_af2628d839ac1a6000f82cc03124df7cb"><div class="ttname"><a href="classerpc_1_1_thread.html#af2628d839ac1a6000f82cc03124df7cb">erpc::Thread::getCurrentThread</a></div><div class="ttdeci">static Thread * getCurrentThread(void)</div><div class="ttdoc">This function returns Thread instance where functions is called. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:77</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_a220ea24e7e421b0a84736c0818fbe59b"><div class="ttname"><a href="classerpc_1_1_thread.html#a220ea24e7e421b0a84736c0818fbe59b">erpc::Thread::getThreadId</a></div><div class="ttdeci">thread_id_t getThreadId(void) const </div><div class="ttdoc">This function returns current thread id. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:137</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_aae9e0fa0c6b9f2a0bd9e2a6fbc43dc56"><div class="ttname"><a href="classerpc_1_1_thread.html#aae9e0fa0c6b9f2a0bd9e2a6fbc43dc56">erpc::Thread::start</a></div><div class="ttdeci">void start(void *arg=0)</div><div class="ttdoc">This function starts thread execution. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:59</div></div>
<div class="ttc" id="classerpc_1_1_mutex_1_1_guard_html_a0e882875ad2764ef2c9402dba23b9e62"><div class="ttname"><a href="classerpc_1_1_mutex_1_1_guard.html#a0e882875ad2764ef2c9402dba23b9e62">erpc::Mutex::Guard::Guard</a></div><div class="ttdeci">Guard(Mutex &amp;mutex)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:297</div></div>
<div class="ttc" id="classerpc_1_1_mutex_html"><div class="ttname"><a href="classerpc_1_1_mutex.html">erpc::Mutex</a></div><div class="ttdoc">Mutex. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:283</div></div>
<div class="ttc" id="classerpc_1_1_semaphore_html"><div class="ttname"><a href="classerpc_1_1_semaphore.html">erpc::Semaphore</a></div><div class="ttdoc">Simple semaphore class. </div><div class="ttdef"><b>Definition:</b> erpc_threading.h:385</div></div>
<div class="ttc" id="classerpc_1_1_thread_html_a5bdd8acf426795e33c858e070ba0e8bb"><div class="ttname"><a href="classerpc_1_1_thread.html#a5bdd8acf426795e33c858e070ba0e8bb">erpc::Thread::Thread</a></div><div class="ttdeci">Thread(const char *name=0)</div><div class="ttdoc">Default constructor for use with the init() method. </div><div class="ttdef"><b>Definition:</b> erpc_threading_pthreads.cpp:30</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">Copyright 2016-2020 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
